package com.kunzai.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kunzai.order.mapper.OrderMapper;
import com.kunzai.order.pojo.Order;
import com.kunzai.order.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class OrderServiceimpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order findOrder(Integer id) {
        Order order =  orderMapper.findOrder(id);
        return order;
    }
}
